<?php
    foreach ($this->data as $data)
    {
?>
<tr>
    <td>
        <?= $data['nik']; ?>
    </td>
    <td>
        <?= $data['nama_pegawai']; ?>
    </td>
    <td>
        <?= $data['email_pegawai']; ?>
    </td>
    <?php if ($this->action == 'edit' || $this->action == 'add') { ?>
    <td>
        <?php echo '<a href="javascript:void" id="deleteAnggota" value="'.$data['id_pegawai'].'"><img src="'.$this->baseUrl().'/content/images/delete.png" /></a>'; ?> 
    </td>
    <?php } ?>
</tr>
<?php
    }
?>